package com.gitee.service;


import com.gitee.bo.CartAddBo;
import com.gitee.bo.CartUpdateBo;
import com.gitee.pojo.Cart;
import com.gitee.vo.CartVo;

import java.util.List;

public interface ICartService {

    Boolean addCart(Integer userId, CartAddBo cartAddBo);

    CartVo updateCart(Integer userId, Integer foodId, Integer cookbookId, Integer cookbookType, CartUpdateBo cartUpdateBo);

    CartVo removeCart(Integer userId, Integer foodId, Integer cookbookId, Integer cookbookType);

    CartVo getCart(Integer userId, Integer cookbookType);

    CartVo settleCart(Integer userId, Integer cookbookType);

    CartVo selectAll(Integer userId, Integer cookbookId, Integer cookbookType);

    CartVo unSelectAll(Integer userId, Integer cookbookId, Integer cookbookType);

    List<Cart> listCarts(Integer userId, Integer cookbookId, Integer cookbookType);
}
